/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SteeringGear {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010080047';
    }

    get categoryName() {
        return '\u8235\u673a';
    }

    getRotationAngle(params) {
        return command({
            method: 'getRotationAngle',
            methodId: 'p1vZ5x95',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRotationDirection(params) {
        return command({
            method: 'getRotationDirection',
            methodId: 'pGoxwGml',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pZguAyrK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setRotationAngle(params) {
        return command({
            method: 'setRotationAngle',
            methodId: 'pUPQZj3M',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setRotationDirection(params) {
        return command({
            method: 'setRotationDirection',
            methodId: 'ppAXNODn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH32fe9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SteeringGear;
